import request from '@/utils/request'

// 查询用户兴趣列表
export function listInterests(query) {
  return request({
    url: '/course/interests/list',
    method: 'get',
    params: query
  })
}

// 查询用户兴趣详细
export function getInterests(id) {
  return request({
    url: '/course/interests/' + id,
    method: 'get'
  })
}

// 新增用户兴趣
export function addInterests(data) {
  return request({
    url: '/course/interests',
    method: 'post',
    data: data
  })
}

// 修改用户兴趣
export function updateInterests(data) {
  return request({
    url: '/course/interests',
    method: 'put',
    data: data
  })
}

// 删除用户兴趣
export function delInterests(id) {
  return request({
    url: '/course/interests/' + id,
    method: 'delete'
  })
}
